public class Students {
	public String name;
	public int age;
	public int xuehao;
	public String ID;

	public Students() {

	}

	@Override
	public String toString() {
		return name + "\t" + age + "\t" + xuehao + "\t" + ID;
	}

	public Students(String name, int age, int xuehao, String iD) {
		this.name = name;
		this.age = age;
		this.xuehao = xuehao;
		ID = iD;
	}

	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof Students)) {
			return false;
		}
		Students ss = (Students) obj;
		return this.xuehao == ss.xuehao;
	}

}
